<header>
  <nav class="navbar navbar-inverse navbar-static-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navegacion-fm">
          <span class="sr-only">Desplegar / Ocultar Menu</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a href="#" class="navbar-brand">Libre</a>
      </div>
      <!-- Inicia Menu -->
      <div class="collapse navbar-collapse" id="navegacion-fm">
        <ul class="nav navbar-nav">
          <li class="active"><a href="#">Inicio</a></li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">Categorias <span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu">
              <li><a href="#">Categoria #1</a></li>
              <li class="divider"></li>
              <li><a href="#">Categoria #2</a></li>
              <li><a href="#">Categoria #3</a></li>
              <li><a href="#">Categoria #4</a></li>
            </ul>
          </li>
          <li><a href="#">Blog</a></li>
          <li><a href="#">Contacto</a></li>
        </ul>
        <form action="#" method="get" class="navbar-form navbar-right" role="search">
          <div class="form-group">
            <input type="text" class="form-control" placeholder="buscar">
          </div>
          <button type="submit" class="btn btn-primary">
            <span>🔍</span>
          </button>
        </form>
      </div>
    </div>
  </nav>
</header>
<section class="jumbotron-dbs">
  <h1 class="encuadre">Molde Libre para paginación | Angular+Bootstrap</h1>
  <p class="encuadre tituloheader">Sitio web construido con Angular+Bootstrap</p>
</section>
<div class="main container">
  <div class="row">
    <div class="posts col-md-9">
      <ol class="breadcrumb">
        <li><a href="#">Inicio</a></li>
        <li><a href="#">Categorias</a></li>
        <li class="active">Diseño Web</li>
      </ol>
      <article class="post clearfix">
        <div class="bs-example" data-example-id="striped-table">
          <table class="table table-striped">
            <thead>
              <tr>
                <th>#</th>
                <th>First Name</th>
                <th>Last Name</th>
                <th>Username</th>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let user of actualPageRowsList">
                <th scope="row">{{user.row_number}}</th>
                <td>{{user.first_name}}</td>
                <td>{{user.last_name}}</td>
                <td>{{user.nick_name}}</td>
              </tr>
            </tbody>
          </table>
        </div>
      </article>
      <nav>
        <div class="center-block">
          <ul class="pagination">
            <li class="{{backwardDisable}}">
              <a (click)="emulateDataBaseListCall(pagNumOfRowsByPage,rowsTotal,'-');"
                 href="javascript:void(0)">
                &laquo;<span class="sr-only">Anterior</span>
              </a>
            </li>
            <li *ngFor='let in of counter(totalOfPages) ;let i = index'
                class="{{['noActivate','active'][this.pageNum === i+1 ? 1 : 0]}}">
              <a (click)="emulateDataBaseListCall(pagNumOfRowsByPage,rowsTotal,i+1);"
                 href="javascript:void(0)">
                {{i+1}}
              </a>
            </li>
            <li class="{{forwardDisable}}">
              <a (click)="emulateDataBaseListCall(pagNumOfRowsByPage,rowsTotal,'+');"
                 href="javascript:void(0)">&raquo; <span class="sr-only">Siguiente</span>
              </a>
            </li>
          </ul>
        </div>
      </nav>
    </div>
  </div>
</div>
<footer>
  <div class="container">
    <div class="row">
      <div class="col-xs-6">
        <p>Sitio Libre escrito con Angular+Bootstrap - <span id="year">2021</span></p>
      </div>
      <div class="col-xs-6">
        <ul class="list-inline text-right">
          <li><a href="#">Inicio</a></li>
          <li><a href="#">Cursos</a></li>
          <li><a href="#">Contacto</a></li>
        </ul>
      </div>
    </div>
  </div>
</footer>
